package com.labtalk.admin.service.impl;

import com.labtalk.admin.mapper.UserMapper;
import com.labtalk.admin.pojo.entity.UserEntity;
import com.labtalk.admin.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.stereotype.Service;

/**
 * @Author G-pointy
 * @Date 2022-08-09
 * @Description: UserServiceImpl
 */
@Service
public class UserServiceImpl implements UserService {
    @Autowired
    private UserMapper userMapper;

    @Autowired
    private RedisTemplate<Object, Object> redisTemplate;

    private static final String REDIS_MENU = "menu_";

    @Override
    public UserEntity getUserByName(String name) {
        return userMapper.selectOne(name);
    }
}
